import request from '@/utils/request.js'

// 天地图搜索接口
export function tdtSearch (params) {
  return request({
    url: '/v2/search',
    type: 'get',
    contentType: "application/json;charset=UTF-8", //指定消息请求类型
    params: params
  })
}


// 地理编码接口
export function tdtGeocoder (params) {
  return request({
    url: '/geocoder',
    type: 'get',
    contentType: "application/json;charset=UTF-8", //指定消息请求类型
    params: params
  })
}

// 行政区划接口
export function tdtAdmin (params) {
  return request({
    url: '/administrative',
    type: 'get',
    contentType: "application/json;charset=UTF-8", //指定消息请求类型
    params: params
  })
}